<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
    <script>
        $(function(){
            // jQuery对象.插件名(选项);
            $('#cc').combobox({
                // url: ...,
                data:[
                    {
                        id:1001,
                        text:'服装'
                    },
                    {
                        id:1002,
                        text:'食品'
                    },
                    {
                        id:1003,
                        text:'电器'
                    }
                ],
                required: true,
                valueField: 'id',
                textField: 'text'
            });
        });
    </script>
</head>
<body>
    <div class="easyui-dialog" style="width:400px;height:200px"
        data-options="
            title:'提示',
            iconCls:'icon-cancel',
            onOpen:function(){console.log(1111);}">
        dialog content.
    </div>


    <input id="cc" style="width:200px" />
    
</body>
</html>